<div class="area">
<h2>{{$title}}</h2>
<form method="post" action="{{$action}}" enctype="multipart/form-data" target="upload_frame" onSubmit="{{$onsubmit}}" style="{{$style}}">
	{{%loop start hidid}}
	<input type="hidden" name="{{$hidname}}" value="{{$hidval}}" />
	{{%loop end}}
	<input type="hidden" name="MAX_FILE_SIZE" value="{{$MAX_FILE_SIZE}}" />
	<input type="hidden" name="type" value="{{$type}}" />
	<label class="left" for="fajl">Fajl:</label><input type="file" name="fajl" id="fajl" onchange="this.parentNode.submit();" />
	<!--<input type="submit" value="OK" />-->
</form><br clear="all" />
<iframe name="upload_frame" id="upload_frame" style="{{$style_frame}}"></iframe>
</div>